package com.yunhe.policyfulfillment.policyful.repository;

import com.yunhe.policyfulfillment.policyful.domain.PolicyInfo;
import com.yunhe.policyfulfillment.policyful.model.PolicyInfoQueryCondition;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PolicyInfoRepository {

    void deleteByPrimaryKey(@Param("id") Long id);

    int insert(PolicyInfo record);

    PolicyInfo selectByPrimaryKey(@Param("id") Long id);

    void updateByPrimaryKeySelective(PolicyInfo record);

    List<PolicyInfo> selectByCondition(PolicyInfoQueryCondition policyInfoQueryCondition);

    List<PolicyInfo> selectEightData(@Param("title") String title);

    void publishTimedPolicyInfo();
}